﻿using log4net;
using PcaCore.BOL.Tareas;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace PcaCore.DAL.Tareas
{
    public class dMes
    {
        private static ILog log = LogManager.GetLogger(typeof(dMes));

        #region Public

        public static List<oMes> GetList()
        {
            try
            {
                //CREATE OR REPLACE FUNCTION pca_tablas.fn_get_list_meses() RETURNS SETOF pca_tareas.meses
                return Core.GetListObjecstDb<oMes>("pca_tablas.fn_get_list_meses");
            }
            catch (Exception ex)
            {
                throw Core.LogException(log, ex, MethodBase.GetCurrentMethod().Name);
            }
        }

        #endregion
    }
}
